/**
 * prescription
 */
package edu.gatech.oad.doctorsorder;

/**
 * A doctor's prescription.
 * 
 * @author chen
 * @version 1.0
 */
public class Prescription extends DoctorsOrder {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * medication for the prescription
	 */
	private String medication;

	/**
	 * dosage for the prescription
	 */
	private String dosage;

	/**
	 * instruction for the prescription
	 */
	private String instructions;

	/**
	 * Constructs a new prescription with specified notes, medication, dosage
	 * and instructions.
	 * 
	 * @param notes
	 *            note for the prescription
	 * @param medication
	 *            medication used
	 * @param dosage
	 *            dosage for the medication
	 * @param instructions
	 *            instruction for the medication
	 */
	public Prescription(String notes, String medication, String dosage,
			String instructions) {
		super(notes);
		this.medication = medication;
		this.dosage = dosage;
		this.instructions = instructions;
	}

	/**
	 * @return the medication
	 */
	public String getMedication() {
		return medication;
	}

	/**
	 * @param medication
	 *            the medication to set
	 */
	public void setMedication(String medication) {
		this.medication = medication;
	}

	/**
	 * @return the dosage
	 */
	public String getDosage() {
		return dosage;
	}

	/**
	 * @param dosage
	 *            the dosage to set
	 */
	public void setDosage(String dosage) {
		this.dosage = dosage;
	}

	/**
	 * @return the instructions
	 */
	public String getInstructions() {
		return instructions;
	}

	/**
	 * @param instructions
	 *            the instructions to set
	 */
	public void setInstructions(String instructions) {
		this.instructions = instructions;
	}

	/**
	 * returns the string representation of the prescription
	 * 
	 * @return the specified string
	 */
	@Override
	public String toString() {
		return "medication: " + medication + "; dosage: " + dosage
				+ "; instruction: " + instructions;

	}

}
